package com.xhui.vimarket.manager.composer;

import lombok.Getter;
import lombok.Setter;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.util.GenericForwardComposer;
import org.zkoss.zul.Button;
import org.zkoss.zul.Window;

public class indexComposer extends GenericForwardComposer {
	@Getter
	@Setter
	private Button xhui;
    private final            String           zul        =       "/xhuitest/xhui_test.zul";

    @Override
    public void doAfterCompose(Component comp) throws Exception {
        super.doAfterCompose(comp);
    }
    public void onChange() {
        Window win = (Window) Executions.createComponents(zul, this.self, arg);
        win.setHeight("603px");
        win.setWidth("603px");
        win.doModal();
        win.addEventListener("onOkNotify", new EventListener() {
            public void onEvent(Event event) throws Exception {
            	System.out.print("dgeagadces得瑟城市");
            }
        });
    }
}
